package effects
{
   // myEffects/Rotation.as
   import mx.effects.TweenEffect;
   import mx.effects.EffectInstance;
   import mx.effects.IEffectInstance;

   public class SlideYEffect extends TweenEffect
   {
       // Define parameters for the effect.
       public var slideFrom:Number = 0;
       public var slideTo:Number = 0;
  
       // Define constructor with optional argument.
       public function SlideYEffect(targetObj:* = null) {
           super(targetObj);
           instanceClass= SlideYEffectInstance;            
       }

       // Override getAffectedProperties() method to return "rotation".
       override public function getAffectedProperties():Array {
           return ["slideYEffect"];
       }
    
       // Override initInstance() method.
       override protected function initInstance(inst:IEffectInstance):void {
           super.initInstance(inst);
           SlideYEffectInstance(inst).slideFrom = slideFrom;  
           SlideYEffectInstance(inst).slideTo = slideTo;              
       } 
   }
}
